package top.lyjwn.todo.weinxin.data.applet;

import com.alibaba.fastjson2.JSONObject;

/**
 * 微信小程序用户
 * 
 * @author luoyujie
 *
 */
public class WXAUser implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3267673730213602031L;
	/**
	 * 国家
	 */
	private String country;
	/**
	 * 省份
	 */
	private String province;
	/**
	 * 城市
	 */
	private String city;

	/**
	 * 性别
	 */
	private Integer gender;

	/**
	 * 语言
	 */
	private String language;
	/**
	 * 昵称
	 */
	private String nickName;
	/**
	 * 头像
	 */
	private String avatarUrl;

	public WXAUser() {
	}

	public WXAUser(String country, String province, String city, Integer gender, String language, String nickName,
			String avatarUrl) {
		this.country = country;
		this.province = province;
		this.city = city;
		this.gender = gender;
		this.language = language;
		this.nickName = nickName;
		this.avatarUrl = avatarUrl;
	}

	public WXAUser(JSONObject jsonObject) {
		this.country = jsonObject.getString("country");
		this.province = jsonObject.getString("province");
		this.city = jsonObject.getString("city");
		this.gender = jsonObject.getInteger("gender");
		this.language = jsonObject.getString("language");
		this.nickName = jsonObject.getString("nickName");
		this.avatarUrl = jsonObject.getString("avatarUrl");
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

}
